package org.caijin.springzookeeper.Id;

import java.text.SimpleDateFormat;
import java.util.Date;

public class OrderIdGenerator {
    public static int count = 0;

    public  String generateOrderId() {
        SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMddhhmmss");
        return sdf.format(new Date()) + "-" + ++count;
    }
}
